<dl class="menu" xmlns:th="http://www.thymeleaf.org"
    th:fragment="menu(menuList)"
    th:unless="${#lists.isEmpty(menuList)}"
>
    <dd class="menu-item" th:each="menu : ${menuList}">
        <a th:href="${not #lists.isEmpty(menu.children) or #strings.isEmpty(menu.uri)} ?'javascript:':${menu.uri}"
           href="javascript:">
            <i th:if="${menu.icon!=null && menu.icon!=''}" th:class="${menu.icon}"
               class="layui-icon layui-icon-home"></i>
            <cite th:utext="${menu.name}"></cite>
        </a>
        <div th:replace="common/menu::menu(menuList=${menu.children})"></div>
    </dd>
</dl>